.searchWrapper {
  background-color: var(--theme-text-primary);
  min-height: 56px;
  padding: 10px 16px;
  box-sizing: border-box;

  .searchTop {
    display: flex;
    align-items: center;

    :global {
      .adm-search-bar {
        flex: 1;
        margin-left: 20px;
      }
    }
  }

  .categoryToggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--theme-text-dark);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    
    &:hover {
      color: var(--theme-primary);
    }
    
    &:focus {
      outline: none;
    }
  }

  .categoryText {
    font-size: 14px;
  }

  .selectedCountBadge {
    margin-left: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 10px;
    line-height: 1;
    padding: 1px 6px;
    border-radius: 10px;
    background-color: var(--theme-primary);
    color: white;
    min-width: 16px;
    height: 16px;
  }

  .sortWrapper {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    :global {
      .adm-tag {
        transition: all 0.3s ease;
        margin-right: 8px;
        padding: 4px 40px;
        border-radius: 20px;
        font-size: 14px;
        font-weight: 500;
        border: 1px solid var(--adm-color-primary);
        
        &.adm-tag-fill-solid {
          background-color: var(--adm-color-primary);
          color: var(--theme-text-primary);
          border-color: var(--adm-color-primary);
        }
        
        &.adm-tag-fill-outline {
          background-color: transparent;
          color: var(--adm-color-primary);
          border-color: var(--adm-color-primary);
        }
      }
    }
  }

  .categoryListWrap {
    background-color: var(--theme-text-primary);
    // padding: 0 16px;

    p {
      margin: 0;
      padding: 0;
    }

    .categoryTitle {
      font-weight: 600;
      font-size: 10px;
      color: var(--theme-text-muted);
      margin-bottom: 5px;
    }

    .categoryItem {
      display: inline-block;
      width: 20%;
      text-align: center;
      padding: 5px 0;
      font-weight: 500;
      font-size: 12px;
      color: var(--theme-text-dark);
      margin: 5px 0;
    }

    .categoryActive {
      background-color: var(--adm-color-primary);;
      border-radius: 25px;
      color: var(--theme-text-primary);
    }
  }
}

.listWrapper {
  //padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding:0 15px;

  :global {
    // 下拉刷新文字样式
    .adm-pull-to-refresh {
      .adm-pull-to-refresh-text {
        font-size: 16px !important;
      }
    }
  }

  // 新的卡片样式
  .card {
    background-color: var(--theme-bg-card);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    gap: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    
    &:hover {
      background-color: var(--theme-bg-secondary);
      transform: translateY(-2px);
      box-shadow: 0 8px 12px -1px rgba(0, 0, 0, 0.2), 0 4px 8px -2px rgba(0, 0, 0, 0.2);
    }
    
    &:active {
      transform: translateY(0);
    }
  }

  .imageContainer {
    width: 96px;
    height: 128px;
    flex-shrink: 0;
    position: relative;
  }

  .itemImage {
    width: 100%;
    height: 100%;
    background-color: var(--theme-bg-card);
    border: 1px solid var(--theme-border-primary);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
  }

  .originalBadge {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(233, 30, 99, 0.2);
    color: var(--theme-primary);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
  }

  .categoryBadge {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(33, 150, 243, 0.2);
    color: var(--theme-accent-info);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
  }

  .contentArea {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .titleRow {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
  }

  .title {
    font-weight: 600;
    font-size: 14px;
    color: var(--theme-text-primary);
    line-height: 1.4;
    margin: 0;
    flex: 1;
    margin-right: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .author {
    font-size: 12px;
    color: var(--theme-text-muted);
    flex-shrink: 0;
  }

  .descriptionContainer {
    flex: 1;
    margin-bottom: 8px;
  }

  .description {
    font-size: 12px;
    color: var(--theme-text-muted);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .bottomRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
  }

  .tagsContainer {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .tag {
    display: inline-block;
    background-color: var(--theme-border-primary);
    color: var(--theme-text-secondary);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
  }

  .actionsContainer {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .addButton {
    width: 20px;
    height: 20px;
    padding: 4px;
    background-color: var(--theme-primary);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-text-primary);

    .material-icons {
      font-size: 12px;
    }
  }
}

.publishIcon {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 32px;
  height: 32px;
  background-image: url('~@/assets/images/publish-icon.jpg');
  background-size: 100% 100%;
}

// 分类筛选模态框样式
.categoryOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 40;
}

.categoryPanel {
  position: fixed;
  top: 64px;
  right: 16px;
  left: 16px;
  max-width: 384px;
  margin: 0 auto;
  z-index: 50;
}

.categoryModal {
  background-color: var(--theme-bg-secondary);
  border: 1px solid var(--theme-border-primary);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.categoryHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--theme-border-secondary);
}

.categoryTitle {
  font-size: 14px;
  color: var(--theme-text-muted);
}

.categoryControls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modeToggle {
  display: flex;
  background-color: var(--theme-bg-card);
  border-radius: 20px;
  padding: 2px;
}

.modeButton {
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modeButtonActive {
  background-color: var(--theme-primary);
  color: white;
}

.modeButtonInactive {
  background-color: transparent;
  color: var(--theme-text-muted);
}

.closeButton {
  color: var(--theme-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  
  &:hover {
    color: white;
  }
}

.categoryContent {
  padding: 12px 16px;
}

.tagList {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tagButton {
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 16px;
  border: 1px solid var(--theme-border-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tagButtonUnselected {
  background-color: var(--theme-bg-card);
  color: var(--theme-text-muted);
  
  &:hover {
    border-color: var(--theme-primary);
    color: white;
  }
}

.tagButtonSelected {
  background-color: var(--theme-primary);
  color: white;
  border-color: var(--theme-primary);
}

.categoryFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--theme-border-secondary);
}

.clearButton {
  font-size: 12px;
  color: var(--theme-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  
  &:hover {
    color: white;
  }
}

.applyButton {
  font-size: 12px;
  background-color: var(--theme-primary);
  color: white;
  border: none;
  border-radius: 16px;
  padding: 4px 12px;
  cursor: pointer;
  
  &:hover {
    background-color: var(--theme-primary-dark);
  }
}
.loadingContent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loadingText {
  color: var(--theme-text-primary);
  font-size: 14px;
  opacity: 0.8;
}